#include<bits/stdc++.h>
using namespace std;
// write your code here......
void overturn(string &str){
    int len = str.length();//C++计算字符串长度形式
    int left = 0, right = len - 1;
    while(left <= right){
        char ch = str[left];
        str[left] = str[right];
        str[right] = ch;
        left++;
        right--;
    }
}

int main(){
    string s;
    getline(cin,s);
    // write your code here......

    overturn(s);
    cout<<s;
    return 0;
}

/*编写一个函数，实现字符串的翻转，要求采用引用的方式实现。*/